# -*- coding: utf-8 -*-
from jiazheng.models import Menus, MenusIntro
from rest_framework import serializers

class MenuSerializer(serializers.ModelSerializer):
    class Meta:
        model = Menus
        fields = ('id', 'name', 'icon', 'page_url', 'sort')
        
class MenusIntroSerializer(serializers.ModelSerializer):
    class Meta:
        model = MenusIntro
        fields = ('id', 'charging_instruction', 'service_instruction', 'menu_id')